<template>
  <div class="home-vacation">
    <div class="vacation-top">
      <span>周末去哪儿</span>
    </div>
    <div class="vacation-list">
      <div class="vacation-item" v-for="item in vacationList" :key="item.id">
        <img :src="item.imgUrl" alt="">
        <h3 class="item-title">{{ item.title }}</h3>
        <p class="item-info">{{ item.info }}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeVacation",
  props: {
    vacationList: {
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    return {

    }
  }
}
</script>

<style scoped>
  .home-vacation {
    font-size: .28rem;
    background: #fff;
    margin-bottom: .2rem;
  }
  .vacation-top {
    font-size: .32rem;
    line-height: .44rem;
    margin-bottom: .1rem;
    padding-left: .2rem;
  }
  .vacation-top span {
    color: #212121;
    font-size: .32rem;
  }
  .vacation-item {
    width: 100%;
    padding-bottom: .2rem;
  }
  .vacation-item img {
    width: 100%;
  }
  .vacation-item .item-title {
    color: #333;
    font-size: .28rem;
    text-indent: 1em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin: .1rem 0;
  }
  .vacation-item .item-info {
    color: #666;
    font-size: .20rem;
    text-indent: 1em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
</style>
